<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/mytag.jspf"%>

<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>">
<title>user</title>
<script type="text/javascript">
var cols = new Array();
cols[0] = "电话";
cols[1] = "验证码";
cols[2] = "创建时间";
cols[3] = "是否注册";

var mods = new Array();
mods[0]={name:"phone",};
mods[1] = {name:"code",};
mods[2] = {name:"creTime"};
mods[3] = {name:"isUsed" ,formatter: "select", editoptions:{value:"YES:是;NO:否"}};
$("#grid").jqGrid({
		pager:"#pager",
		url:"management/vip/codeInfopage",
	   	colNames:cols,
	   	colModel:mods
	});
	$(function(){ 
	    $("#searchBtn").click(function(){
	        $("#grid").jqGrid('setGridParam',{ 
	            postData:$("#queryForm").serializeJson(), //发送数据
	            page:1
	        }).trigger("reloadGrid"); //重新载入 
	    }); 
	});	
</script>
</head>

<body>
	<ol class="am-breadcrumb am-breadcrumb-slash am-padding" style="margin-bottom: 0px;">
		<li><a href="management/index">首页</a></li>
		<li class="am-active">短信验证</li>
	</ol>

	<div class="am-g">
		<form id="queryForm">
		<div class="am-u-md-4">
			<div class="am-input-group am-input-group-sm">
				<input type="text" name="phone" class="am-form-field" placeholder="请输入手机号查询"><span class="am-input-group-btn"><button class="am-btn am-btn-default" type="button" id="searchBtn">搜索</button></span>
			</div>
		</div>
		</form>
	</div>
	<div class="am-g am-padding-vertical">
		<div class="am-u-md-12"><table id="grid"></table><div id="pager"></div></div>
	</div>
</body>
</html>
